package com.baizhi.dao;

import com.baizhi.entity.Admin;

import java.util.List;

public interface AdminDao {
    /**
     * 新增一个admin
     * @param admin
     */
    public void addAdmin(Admin admin);

    /**
     * 根据id删除admin
     * @param adminId
     */
    public void deleteAdmin(String adminId);

    /**
     * 更新admin
     * @param admin
     */
    public void updateAdmin(Admin admin);

    /**
     * 根据username查询admin
     * @param username
     * @return
     */
    public Admin selectAdminByUsername(String username);

    /**
     * 查询所有的admin
     * @return
     */
    public List<Admin> selectAllAdmin();

}
